<div style="margin:10px;" align=center>
	<h1>Wyszukiwanie osób</h1>
	
	<% form_for([:admin, @person], :url => { :action => "search" }) do |f| %>
	  <%= f.error_messages %>
	  <div>
			<%= render :partial => "/admin/people/personForm", :object => f %>	
		</div>
		<div align="left"><%= f.submit "Szukaj" %></div>
	<% end %>
	
	<div align="left"><%= link_to 'Powrót', admin_people_path %></div>
	
	<% unless @result.empty?%>
		<h1>Wyniki</h1>
		<div>
			<%= render :partial => "/admin/people/people", :object => @result %>
		</div>
	<% end %>
	
</div>